#!/usr/bin/ruby

require 'lib'

class Compiler < Gtk::Window

	def run_cmds
    go 500, 500
		forward 50
		turnleft 45
		forward 50
		turnright 90
		forward 50
		go 500, 250
		gox 300
		goy 200
		pencolor 65535, 0, 0
		forward 100
		turnright 45
		penwidth 3	
		forward 100
		turnleft 90
		backward 50
		reset
		backward 100
		turnleft 90
		forward 100
		direction 90
		forward 50
		penup
		forward 100
		pendown
		forward 100
		pencolor 65535, 0, 0
		penwidth 5
		wait 3
		forward 50
		reset
		go 500, 500
		for i in 1..5
			forward i*20
		end
		reset
		4.repeat {
			forward 100
		}
		i = 0
		while (i < 3) do
			i += 1
			turnright 45
			forward 50
		end
  end

end

Gtk.init
	window = Compiler.new
Gtk.main
